package com.itheima.service.impl;

import com.itheima.dao.AccountDao;
import com.itheima.pojo.Account;
import com.itheima.service.AccountService;

import java.util.List;

/**
 * @author zhangyan
 * @date 2021/2/1 10:43
 */
public class AccountServiceImpl implements AccountService {

    AccountDao accountDao;

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;

    }

    @Override
    public List<Account> findAll() {

        return accountDao.findAll();
    }
    @Override
    public Account findById(Integer id) {

        return accountDao.findById(id);
    }
}
